package com.qianli.user.domain.facatory;

import com.qianli.user.domain.model.UserSocialModel;
import com.qianli.user.domain.respository.UserSocialRespository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * name:社交信息
 * auth:ting.li@qianli-inc.com
 * date:2018/1/2 15:48
 * version: v1.0.0
 **/
@Service
public class UserSocialFactory {

    @Autowired
    private UserSocialRespository userSocialRespository;

    /**
     * 加载社交信息
     * @param model
     */
    public void load(UserSocialModel model) {

        userSocialRespository.load(model);
    }
    /**
     * 保存社交信息
     * @param model
     */
    public void store(UserSocialModel model){

        userSocialRespository.store(model);
    }
}
